#ifndef CHATTEXT_H
#define CHATTEXT_H

#include <QWidget>
#include <QTextEdit>
#include <QKeyEvent>
#include <QDebug>


class ChatText:public QTextEdit
{
public:
    ChatText(QWidget *parent = nullptr);

public:
    //按键离开事件
    void keyReleaseEvent(QKeyEvent *e);
    //鼠标按下事件
    void mousePressEvent(QMouseEvent* m);

};

#endif // CHATTEXT_H
